{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
{#    <link rel="stylesheet" href="{% static 'bootstrap/css/bootstrap.css' %}">#}
</head>
<body>
<div class="container">
    <div class=row>
        <div style="margin-top: 100px">
            <div class="col-md-6 col-md-offset-3">
                <form class="form-horizontal" action="{% url 'add_book' %}" method="post">
                    {% csrf_token %}
                    <div class="form-group">
                        <label for="book_name" class="col-sm-2 control-label">书名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="book_name" placeholder="书名" name="book_name">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="book_price" class="col-sm-2 control-label">价格</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="book_price" placeholder="价格" name="book_price">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="book_time" class="col-sm-2 control-label">出版时间</label>
                        <div class="col-sm-10">
                            <input type="date" class="form-control" id="book_time" placeholder="出版时间" name="book_time">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="book_publish" class="col-sm-2 control-label">出版社</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="book_publish" placeholder="出版社"
                                   name="book_publish">
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <input type="submit" value="保存" class="btn  btn-primary pull-right">

                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>